package us.codecraft.webmagic.utils;

import java.io.IOException;

import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.Mongo;
import com.mongodb.MongoException;


public class ParseLinking {

	/**
	 * @param args
	 * @throws MongoException 
	 * @throws IOException 
	 */
	public static void main (String args[]) throws MongoException, IOException{
		DB db;
		DBCollection coll;
		DBCollection coll_linking;
		Mongo mc;
		
		mc = new Mongo("mongo1");
		db = mc.getDB("webpage");
        coll = db.getCollection("com.eelly");
        coll_linking = db.getCollection("com.eelly.TESTlinking");
        
        MongoUtil mu = new MongoUtil();
        mu.MongoParseLinking(coll, coll_linking);
	}



}
